﻿using System;
using System.Web.UI;
using StructureMap;
using Tarantino.Core.Commons.Services.Security;

namespace Tarantino.Samples.UI.Secure
{
	public partial class SecurePage : Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			btnLogout.Click += btnLogout_OnClick;
		}

		private void btnLogout_OnClick(object sender, EventArgs e)
		{
			ILoginService service = ObjectFactory.GetInstance<ILoginService>();
			service.Logout();
		}
	}
}